package java_012_zuoye01;

public class java03 {
	public static void main(String[] args){
		int ge ;
		int shi;
		int bai;
		int qian;
		int wan;
		for (int i=10;i<100000;i++){
			ge =i%10;
			if(100>i&&i>=10){
				shi=i/10;
				if (shi == ge){
					System.out.println(i);
				}
			}
			if(1000>i&&i>=100){
				bai=i/100;
				shi = (i-bai*100)/10;
				if(bai==ge){
					System.out.println(i);
				}
			}
			if (10000>i&&i>=1000){
				qian=i/1000;
				bai=(i-qian*1000)/100;
				shi=(i-qian*1000-bai*100)/10;
				if(ge==qian&&bai==shi){
					System.out.println(i);
				}
			}
			if(100000>i&&i>=10000){
				wan=i/10000;
				qian=(i-wan*10000)/1000;
				bai=(i-wan*10000-qian*1000)/100;
				shi=(i-wan*10000-qian*1000-bai*100)/10;
				if(wan==ge&&qian==shi){
					System.out.println(i);
				}
			}
		}
	}

}
